<?php
if (!defined('HIGHPHP_SERVER')){
    define('HIGHPHP_SERVER', 0);
}
define('HIGHPHP_ROOT_DIR', realpath ( dirname ( __FILE__ ) ).'/..' );
include_once HIGHPHP_ROOT_DIR . '/config/define.php';
include_once HIGHPHP_ROOT_DIR . '/lib/framework.php';
framework::$HIGHPHP_SERVER = HIGHPHP_SERVER;
framework::$HIGHPHP_ROOT_DIR = HIGHPHP_ROOT_DIR;
framework::$HIGHPHP_DEBUG= 1 ;//错误级别
framework::$HIGHPHP_WEB_DIR= strtolower ( preg_replace ( '/[\w]+.php/', '', strtolower ( $_SERVER ['SCRIPT_NAME'] ) ) );
framework::$HIGHPHP_LOG_DIR= HIGHPHP_ROOT_DIR . '/log/' ;
framework::$HIGHPHP_LOG_LEVEL= 0 ; //日志级别 0:Info Warning and Error 1:Warning AND Error 2:only Error 3:No log 
framework::$HIGHPHP_CACHE_DIR= HIGHPHP_ROOT_DIR . '/cache/' ;
framework::$HIGHPHP_WWW_HOST= 'http://' . @$_SERVER ['HTTP_HOST'] . framework::$HIGHPHP_WEB_DIR ;
framework::$HIGHPHP_USER_IMG= framework::$HIGHPHP_WWW_HOST. 'upload/images/users/' ;
framework::$HIGHPHP_UPLOAD_DIR= HIGHPHP_ROOT_DIR . '/upload/' ;
framework::$HIGHPHP_PRE_PAGE= @$_SERVER ['HTTP_REFERER'] ;
framework::$HIGHPHP_THIS_PAGE= @$argv [1]?$argv [1]:'http://' . $_SERVER ['HTTP_HOST'] . $_SERVER ['REQUEST_URI'] ;
framework::$HIGHPHP_LIB_DIR= HIGHPHP_ROOT_DIR . '/lib/' ;
framework::$HIGHPHP_WEB_PATH= HIGHPHP_ROOT_DIR . '/' ;
framework::$HIGHPHP_PROJECT_PATH= HIGHPHP_ROOT_DIR . '/app/project/' ;
framework::$HIGHPHP_TEMP_PATH= HIGHPHP_ROOT_DIR . '/app/templates/' ;
framework::$project = 'api';
framework::$action = 'index';
framework::$cacheTime = 0; //开启缓存的缓存时间，0为不开启
framework::$cachePage = array (framework::$HIGHPHP_WWW_HOST, 'http://api.uxin.com/dev/user/getinfo*' ); //缓存页面 结束带*则表示满足规则的所有的都缓存
framework::$debug = 0; //开启调试模式 0不开，1开启
error_reporting ( framework::$HIGHPHP_DEBUG );
framework::run ();